import 'dart:convert';
import 'dart:typed_data';

import 'package:flutter/cupertino.dart';
import 'package:jetour_line/map/map_utils.dart';
class AhaUtils {
  static String getImagePath(String img){
    return "packages/jetour_line/res/${img}.png";
  }
  static void showTxt(String txt){
    MapUtils.showTxt(txt);
  }
  static getAppBarHeight(BuildContext context) {
    return MediaQuery.of(context).padding.top + 44;
  }
  static double getScreenWidth(BuildContext context){
    MediaQueryData queryData = MediaQuery.of(context);
    return queryData.size.width;
  }
  static double getScreenHeight(BuildContext context){
    MediaQueryData queryData = MediaQuery.of(context);
    return queryData.size.height;
  }
}